Skip to content

Fix "Open Schema" CodeLens for schemas with URI without //#1224

Merged
datho7561 merged 1 commit intoredhat-developer:mainfrom
datho7561:fix-codelens-for-contributed
Apr 9, 2026
Merged

Fix "Open Schema" CodeLens for schemas with URI without //#1224
datho7561 merged 1 commit intoredhat-developer:mainfrom
datho7561:fix-codelens-for-contributed

Conversation

@datho7561
Copy link
Copy Markdown
Contributor

What does this PR do?

In the "Open file from CodeLens" logic, there's a check for :// in an attempt to differentiate relative paths and URIs. I didn't realize that the // after the colon isn't a requirement for a URI, only the colon.

What issues does this PR fix or reference?

Fixes redhat-developer/vscode-yaml#1220

Is it tested? How?

Manually (created the example extension, tested against that)

Fixes redhat-developer/vscode-yaml#1220

Signed-off-by: David Thompson <davthomp@redhat.com>
@datho7561 datho7561 merged commit 6c5ee05 into redhat-developer:main Apr 9, 2026
4 checks passed
@datho7561 datho7561 deleted the fix-codelens-for-contributed branch April 9, 2026 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

open schema codelens stopped working for contributed schemas

1 participant